package com.zhang.log4j;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class Log4jDemo {


    public void test(){
         Log log =  LogFactory.getLog(Log4jDemo.class);
        log.trace("trace");
        log.debug("debug");
        log.info("info");
        log.warn("warn");
        log.error("error");
        log.fatal("fatal");
    }


    //这是程序的入口
    public static void main(String[] args) {
        Log4jDemo log4jDemo = new Log4jDemo();
        log4jDemo.test();
    }
}


